class Counter {
  int value;

  Counter(this.value);

  Counter increment() => Counter(value + 1);
  Counter decrement() => Counter(value - 1);
} 